/****************************************************************************
* 			Title: STYL Construction Files
*			Output:
*			Date:
*****************************************************************************/

////1. DIRECTORY INFORMATION ////


********************************************************************************
*** Analysis *******************************************************************
********************************************************************************



//// 3. SURVEYSET, PROGRAMS AND GLOBALS ////

	//b. SET GLOBALS

		* Controls
			gl cohorts redlight_p1  ///
			           redlight_p2  ///
			           centralmonrovia_p2  ///
			           redlight_p3  ///
			           centralmonrovia_p3  ///
			           claratown_p3  ///
			           logantown_p3  ///
			           newkrutown_p3

			gl strata "I.tp_strata_alt I.cg_strata"


			gl base1  age_b  ///
			        livepartner_b  ///
			        mpartners_b  ///
			        hhunder15_b  ///
				    famseeoften_b  ///
				    muslim_b  ///
				    school_b  ///
				    schoolbasin_b  ///
				    literacy_b  ///
				    mathscore_b  ///
				    health_resc_b  ///
				    disabled_b  ///
				    depression_b  ///
				    distress_b  ///
			     	rel_commanders_b  ///
			     	faction_b  ///
			     	warexper_b  ///
				    profitsump99avg7d_b  ///
				    wealth_indexstd_b  ///
				    homeless_b  ///
				    slphungry7dx_b  ///
				    savstockp99_b  ///
				    loan50_b  ///
				    loan300_b  ///
					illicit7da_zero_b  ///
					agricul7da_zero_b  ///
					nonagwage7da_zero_b  ///
					allbiz7da_zero_b  ///
				    nonaghigh7da_zero_b  ///
				    agriculeveramt_b  ///
				    nonagbizeveramt_b  ///
				    nonaghigheveramt_b  ///
				    drugssellever_b  ///
				    drinkboozeself_b  ///
				    druggrassself_b  ///
				    grassdailyuser_b  ///
				    harddrugsever_b  ///
				    harddrugsdailyuser_b

			gl base2 	steals_b  ///
				        stealnb_nonviol_b  ///
				        stealnb_felony_b  ///
				        disputes_all_b  ///
				        asbhostil_b  ///
				        conscientious_b  ///
				        neurotic_b  ///
				        grit_b  ///
				        rewardresp_b  ///
				        locuscontr_b  ///
			     	    impulsive_b  ///
			     	    selfesteem_b  ///
					      patience_rstd_b  ///
					      incon_game_resc_b  ///
					      risk_game_resc_b  ///
				        timedecl_b  ///
				        riskdecl_b  ///
					      cognitive_score_b  ///
					      ef_score_b

			gl base age_b  ///
			        livepartner_b  ///
			        mpartners_b  ///
			        hhunder15_b  ///
				    famseeoften_b  ///
				    muslim_b  ///
				    school_b  ///
				    schoolbasin_b  ///
				    literacy_b  ///
				    mathscore_b  ///
				    health_resc_b  ///
				    disabled_b  ///
				    depression_b  ///
				    distress_b  ///
			     	rel_commanders_b  ///
			     	faction_b  ///
			     	warexper_b  ///
				    profitsump99avg7d_b  ///
				    wealth_indexstd_b  ///
				    homeless_b  ///
				    slphungry7dx_b  ///
				    savstockp99_b  ///
				    loan50_b  ///
				    loan300_b  ///
					illicit7da_zero_b  ///
					agricul7da_zero_b  ///
					nonagwage7da_zero_b  ///
					allbiz7da_zero_b  ///
				    nonaghigh7da_zero_b  ///
				    agriculeveramt_b  ///
				    nonagbizeveramt_b  ///
				    nonaghigheveramt_b  ///
				    drugssellever_b  ///
				    drinkboozeself_b  ///
				    druggrassself_b  ///
				    grassdailyuser_b  ///
				    harddrugsever_b  ///
				    harddrugsdailyuser_b  ///
				    steals_b  ///
				    stealnb_nonviol_b  ///
				    stealnb_felony_b  ///
				    cens_disputes_all_b  ///
				    asbhostil_b  ///
				    conscientious_b  ///
				    neurotic_b  ///
				    grit_b  ///
				    rewardresp_b  ///
				    locuscontr_b  ///
			     	impulsive_b  ///
			     	selfesteem_b  ///
					patience_rstd_b  ///
					incon_game_resc_b  ///
					risk_game_resc_b  ///
				    timedecl_b  ///
				    riskdecl_b  ///
					cognitive_score_b  ///
					ef_score_b


/*
       cogabilities_z_b |     6094     0.00     1.00    -3.63     2.20
       mentalhealth_z_b |     6094    -0.00     0.99    -2.29     3.48
              success_b |     6094     0.00     1.00    -1.60     4.35
        total7da_zero_b |     6094    46.19    43.13     0.00   393.00
              fam_asb_b |     6094     0.00     1.00    -1.41     5.59
       personalitystd_b |     6094     0.00     0.94    -3.89     3.21
 patient_game_rstd_b_v2 |     6094    -0.00     1.00    -2.09     0.95
*/

gl base_balance age_b  ///
			        livepartner_b  ///
			        mpartners_b  ///
			        hhunder15_b  ///
				    famseeoften_b  ///
				    muslim_b  ///
				    school_b  ///
				    schoolbasin_b  ///
				    literacy_b  ///
				    mathscore_b  ///
				    health_resc_z_b  ///
				    disabled_b  ///
				    depression_b  ///
				    distress_b  ///
			     	rel_commanders_b  ///
			     	faction_b  ///
			     	warexper_b  ///
				    profitsump99avg7d_b  ///
				    wealth_indexstd_b  ///
				    homeless_b  ///
				    slphungry7dx_b  ///
				    savstockp99_b  ///
				    loan50_b  ///
				    loan300_b  ///
					illicit7da_zero_b  ///
					agricul7da_zero_b  ///
					nonagwage7da_zero_b  ///
					allbiz7da_zero_b  ///
				    nonaghigh7da_zero_b  ///
				    agriculeveramt_b  ///
				    nonagbizeveramt_b  ///
				    nonaghigheveramt_b  ///
				    drugssellever_b  ///
				    drinkboozeself_b  ///
				    druggrassself_b  ///
				    grassdailyuser_b  ///
				    harddrugsever_b  ///
				    harddrugsdailyuser_b  ///
				    steals_b  ///
				    stealnb_nonviol_b  ///
				    stealnb_felony_b  ///
				    cens_disputes_all_b  ///
				    asbhostil_b  ///
				    conscientious_b  ///
				    neurotic_b  ///
				    grit_b  ///
				    rewardresp_b  ///
				    locuscontr_b  ///
			     	impulsive_b  ///
			     	selfesteem_b  ///
          patience_rstd_b ///
					incon_game_resc_b  ///
					risk_game_resc_b  ///
				    timedecl_b  ///
				    riskdecl_b  ///
					cognitive_score_b  ///
					ef_score_b



		gl base_het age_b  ///
			        livepartner_b  ///
			        mpartners_b  ///
			        hhunder15_b  ///
				    famseeoften_b  ///
				    muslim_b  ///
				    school_b  ///
				    schoolbasin_b  ///
				    literacy_b  ///
				    mathscore_b  ///
				    health_resc_b  ///
				    disabled_b  ///
				    depression_b  ///
				    distress_b  ///
			     	rel_commanders_b  ///
			     	faction_b  ///
			     	warexper_b  ///
				    profitsump99avg7d_b  ///
				    wealth_indexstd_b  ///
				    homeless_b  ///
				    slphungry7dx_b  ///
				    savstockp99_b  ///
				    loan50_b  ///
				    loan300_b  ///
					illicit7da_zero_b  ///
					agricul7da_zero_b  ///
					nonagwage7da_zero_b  ///
					allbiz7da_zero_b  ///
				    nonaghigh7da_zero_b  ///
				    agriculeveramt_b  ///
				    nonagbizeveramt_b  ///
				    nonaghigheveramt_b  ///
				    drugssellever_b  ///
				    drinkboozeself_b  ///
				    druggrassself_b  ///
				    grassdailyuser_b  ///
				    harddrugsever_b  ///
				    harddrugsdailyuser_b  ///
				    /// steals_b  ///
				    /// stealnb_nonviol_b  ///
				    /// stealnb_felony_b  ///
				    disputes_all_b  ///
				    /// asbhostil_b  ///
				    conscientious_b  ///
				    neurotic_b  ///
				    grit_b  ///
				    rewardresp_b  ///
				    locuscontr_b  ///
			     	impulsive_b  ///
			     	selfesteem_b  ///
					/// patience_rstd_b  ///
					/// inconsistent_game_resc_b  ///
					risk_game_resc_b  ///
				    /// timedecl_b  ///
				    riskdecl_b  ///
					cognitive_score_b  ///
					ef_score_b


						gl base_no_asb age_b  ///
			        livepartner_b  ///
			        mpartners_b  ///
			        hhunder15_b  ///
				    famseeoften_b  ///
				    muslim_b  ///
				    school_b  ///
				    schoolbasin_b  ///
				    literacy_b  ///
				    mathscore_b  ///
				    health_resc_b  ///
				    disabled_b  ///
				    depression_b  ///
				    distress_b  ///
			     	rel_commanders_b  ///
			     	faction_b  ///
			     	warexper_b  ///
				    profitsump99avg7d_b  ///
				    wealth_indexstd_b  ///
				    homeless_b  ///
				    slphungry7dx_b  ///
				    savstockp99_b  ///
				    loan50_b  ///
				    loan300_b  ///
					illicit7da_zero_b  ///
					agricul7da_zero_b  ///
					nonagwage7da_zero_b  ///
					allbiz7da_zero_b  ///
				    nonaghigh7da_zero_b  ///
				    agriculeveramt_b  ///
				    nonagbizeveramt_b  ///
				    nonaghigheveramt_b  ///
				    drugssellever_b  ///
				    drinkboozeself_b  ///
				    druggrassself_b  ///
				    grassdailyuser_b  ///
				    harddrugsever_b  ///
				    harddrugsdailyuser_b  ///
				    conscientious_b  ///
				    neurotic_b  ///
				    grit_b  ///
				    rewardresp_b  ///
				    locuscontr_b  ///
			     	impulsive_b  ///
			     	selfesteem_b  ///
					patience_rstd_b  ///
					incon_game_resc_b  ///
					risk_game_resc_b  ///
				    timedecl_b  ///
				    riskdecl_b  ///
					cognitive_score_b  ///
					ef_score_b




      gl base_small age_b livepartner_b hhunder15_b school_b ///
                    cogabilities_z_b health_resc_z_b mentalhealth_z_b warexper_b ///
                    success_b savstockp99_b illicit7da_zero_b total7da_zero_b ///
                    fam_asb_b personalitystd_b patience_rstd_b




      gl base_small2 livepartner_b hhunder15_b school_b ///
                    cogabilities_z_b health_resc_z_b mentalhealth_z_b warexper_z_b ///
                    success_b savstockp99_b illicit7da_zero_b total7da_zero_b ///
                    fam_asb_b personalitystd_b patience_rstd_b


      gl base_small3 livepartner_b hhunder15_b school_b ///
                    cogabilities_z_b health_resc_z_b mentalhealth_z_b warexper_b ///
                    success_b savstockp99_b illicit7da_zero_b total7da_zero_b ///
                    personalitystd_b patience_rstd_b


			gl dvs_t1 fam_econ  ///
			          fam_asb  ///
			          mech_allexceptef  ///
			          timepref  ///
			          selfcontrolnolo  ///
			          fam_identity  ///
			          fam_mental  ///
			          subabuse  ///
			          fam_network

			gl dvs_t2 fam_asb   ///
			          drugssellever   ///
			          stealnb_std   ///
			          disputes_all_z_std   ///
			          carryweapon_std   ///
			          arrested_std   ///
			          asbhostil_std   ///
			          domabuse_z_std

			gl dvs_t3 fam_econ  ///
			          cstot2wusd_std  ///
			          profitsump99avg7d_std  ///
			          wealth_indexstd_std  ///
			          savstockp99_std  ///
			          bizstocktotp99_std  ///
			          houravg7d_std  ///
			          homeless_std

			gl dvs_t4 timepref  ///
			          timepref_p  /// falta
			          timepref_t // falta

			gl dvs_t5 selfcontrolnolo  ///
			          impulsivestd  ///  Ask Chris for the direction of the effect (resc deleted)
			          conscientiousstd  ///
			          gritstd  ///
			          rewardrespstd // Ask Chris for the direction of the effect (resc deleted)

			gl dvs_t6 fam_identity  ///
		          	  attcriminality_std ///
		          	  attviolence_std ///
		          	  politicalviol_std  ///
		          	  appearanceindex_std  ///
		          	  prosocialindex_std


			gl dvs_t7 fam_mental  ///
			          fam_mental_pos  ///
			          fam_mental_dep

			gl dvs_t8 subabuse ///
			          drinkboozeever_std ///
			          grassever_std ///
			          harddrugsever_std

			gl dvs_t9 fam_network ///
			          peerqualitystd_std ///
			          famsupportindex_std ///
			          rel_commanders_std ///
			          patronlvl_std

			gl dvs_t13 fam_mental  ///
			           selfesteemstd_std  ///
			           wellbeing_std  ///
			           locuscontrstd_std  ///
			           neuroticstd_std  ///
			           distress_std  ///
			           depression_std

			gl dvs_t10 personalitystd_g1 ///
			           personalitystd_le1 ///
			           violatt_g1 ///
			           violatt_le1

			gl dvs_d7 personalitystd  ///
			          timepref  ///
			          ef_score  ///
			          sctp  ///
			          scef  ///
			          sctpef




********************************************************************************
*** Cleaning *******************************************************************
********************************************************************************
	gl main_out   fam_asb  ///
	              fam_econ  ///
			          timepref  ///
			          selfcontrolnolo  ///
			          fam_identity  ///
			          fam_mental  ///
			          fam_subabuse  ///
			          fam_network

	gl index_asb  fam_asb   ///
			          drugssellever   ///
			          stealnb   ///
			          disputes_all_z   ///
			          carryweapon   ///
			          arrested   ///
			          asbhostil   ///
			          domabuse_z


    gl cens_index_asb  cens_fam_asb   ///
                      drugssellever   ///
                      cens_stealnb    ///
                      cens_disputes_all_z_p   ///
                      carryweapon     ///
                      arrested        ///
                      asbhostil_z_p   ///
                      domabuse_z_p



global identityvars   violatt ///
						attviolence ///
							nvstrangerrob nvowetakesthg nvknowncriminal nvstorekeeperpunish_resc nvkillstore_resc ///
							nvbeatwoman nvdestroyproperty nvstealfriendsgirl nvcorruptleaderbeaten nvbeatwife nvgirlrape ///
						attcriminality ///
							attstchinamanbeat attstblackmoney attstnightops_resc attsttaxiwallet ///
							attstmoneydroptake attstfamilylec attstmoneybagtake attstmoneyhangtake ///
							attstroomvaluablestake attselfdrugsell attstknownindiv attstifreturn ///
						politicalviol ///
							pvhypdemstpaid  pvhyppalpaid pvhyppalpaid200ld ///
							pvhypdemstpaidwcheat pvhyppalpaidwcheat ///
							pvhyppalpaid200ldwcheat ///
						    pvtalkdemstdum pvtalkpaldum  pvtalkdemstwcheatdum //////
	              pvtalkpalwcheatdum  ///
					      appearanceindex ///
							clothescond_resc shoecond_resc breath_resc cleanface_resc ///
							hair_resc fingernails_resc ///
                        prosocial prosocialindex ///
							groups  ///
							groupleadindex ///
								leader bigman groupcommleader startgroup_resc ///
							publicgoodcontrnumb  ///
							trustindex ///
								trustrelatives_resc trusttleader_resc trustngos_resc trustipal_resc

global asbvars    drugssellever  ///
					          drugsellself drugsell4w drugsell2wx ///
					        stealnb cens_stealnb crimes2wx  ///
					          stealtakethingsx stealmistakecorrx stealscrapex stealpickpocketx ///
					          stealscamx stealblackdeedx stealmuggerx stealarmedrobx  ///
					        disputes_all disputes_all_z cens_disputes_all_z_p  ///
					         	fightsmlneigh fightbigneigh fightphys fightweapon fightsmlleader ///
					         	fightbigleader fightsmlpolice fightbigpolice fine			 ///
					        carryweapon ///
					        arrested  ///
					        asb hostility  asbhostil_z_p ///
					           badreact_resc badadvice_resc hardjokes_resc baddestroy_resc cheat_resc  ///
					           troublesome_resc frustrated_resc threaten_resc takethings_resc 		///
					           selfdiscipline_resc asb_reactlose_resc asb_reacthit_resc 					 ///
					           asb_reactdefend_resc asb_reacttease_resc asb_proontop_resc 						 ///
					           asb_provandalize_resc asb_procompetitor_resc asb_prophysforce_resc ///
					           asb_procuss_resc ///
					           asb_reactlose asb_reacthit asb_reactdefend asb_reacttease asb_proontop         ///
                     asb_provandalize asb_procompetitor asb_prophysforce asb_procuss ///
					         domabuse_z_p ///
					         		maccuse_resc mthreat_resc minsult_resc mhit_resc ///
					         		/// other versions
                     asbhostil_z_ss          asbhostil_z_k  ///
                     cens_disputes_all_z_ss  cens_disputes_all_z_k ///
                     domabuse_z_ss           domabuse_z_k





global socialvars  ///
					peerqualitystd  ///
							peerschool peercommmtg peerchurch peerwork peerbusiness peersave  ///
							peertrust peershare peercheer peerguard ///
							peerbeg_resc peerdrunk_resc peerdrugs_resc peerpickpocket_resc  ///
							peerburglary_resc  peerrobbers_resc peergamble_resc peerexcom_resc  ///
							peercomdr_resc peersmallpal_resc peerbigpal_resc ///
					famsupportindex ///
							famseeoften_resc famconcern_resc famadvise_resc famhelp_resc ///
					rel_commanders ///
							peercomdr relcomm jobcomm repcomm ///
					patronlvl ///
							ptrnjob ptrnbiz ptrnfood ptrnschl  ptrnhsing

global econvars  ///
              profitsump99avg7d profitsump997d profitsump99prev7d  ///
			           wealth_indexstd ///
			           cstot2wusd ///
			             csnonfood2w cshealthedu2w csdurable2w csimpulse2w ///
			           savstockp99 savesusuamtusd ///
			             saveclubamtusd savebankamtusd savewpersonamtusd savewselfamtusd saveothamtusd  ///
			           bizexptotp99 bizstocktotp99 ///
			             bizstockraw bizstockinvent bizstockequip bizstockstruct  ///
			           houravg7d hour7d hourprev7d houravg7d nonaghighhouravg7d nonagbizhouravg7d nonagwagehouravg7d ///
							   agriculhouravg7d illicithouravg7d ///
			           homeless ///
			             sleepstreetnow sleepstreet4w sleepstreet4wdys   ///
			           victimany ///
			             victimhouserob3m victimhouserob3mamt  victimhouserob4w victimhouserob4wamt  victimhouserob13m victimhouserob6m ///
			          	victimhouserob3m_resc victimhouserob4w_resc

global wealthvars  dwellingqual wallsqual floorqual roofqual batheaccess toiletqual placedry ownhouse rooms bicycles motorcycles singlebarrelgun pistol knife    ///
			          	 mattresses generator coalpots radios tvs books mats chairs tables wheelbarrow oillantern kerosenelanterns battlanterns torch landtown farmland ///
			          	landdeeds watch phones shoes shirts trousers eat1dx slphungry



global selfcontrolvars personalitystd ///
						           impulsivestd impulsivestd_resc ///
						           	bimpls_buy_resc bimpls_act_resc bimpls_talk_resc bimpls_squirm_resc bimpls_concentrate_resc  ///
						           	bimpls_present_resc bimpls_control_resc time_decl_regretspend_resc ///
						           conscientiousstd   ///
						           	cnsc_prepare_resc cnsc_details_resc cnsc_doitright_resc cnsc_plans_resc  ///
						           	cnsc_getby_resc cnsc_work_resc cnsc_complete_resc cnsc_shirk_resc  ///
						           gritstd  ///
						           	prsv_overcome_resc prsv_ambitious_resc prsv_discourage_resc prsv_achieveimp_resc  ///
						           	prsv_driven_resc prsv_changeplan_resc prsv_achievenoimp_resc ///
						           rewardrespstd  rewardrespstd_resc ///
						           	bas_goallout_resc bas_noholds_resc bas_doforfun_resc bas_keepatit_resc bas_feelexcite_resc  ///
						           	bas_seeopp_resc bas_feelstrongly_resc bas_wincontest_resc

global timeprefvars		 patient_game_real ///
							         patient_game_decl ///
							         d_rate ///
							         timedecl_p ///
							         	time_decl_patienceladder time_decl_patient_resc time_decl_saveproblems_resc ///
							         incon_game_real  ///
							         incon_game_decl ///
							         incon_rate_dsct ///
							         timedecl_t ///
							         	time_decl_spendquick time_decl_celebrate th_avdmnywstingfrnds_resc  ///
							         	risk_game_real ///
	                     time_decl_spendquickz th_avdmnywstingfrnds_rescz th_avdthvngfrnds_rescz ///
								       time_decl_celebratez time_saveproblems_rescz time_decl_patienceladderz time_decl_patient_rescz patient_game_realstd ///
								       patient_rate_dsct incon_game_realstd  patient_game_realstd patient_game_declstd incon_game_declstd patient_rate_dsct incon_rate_dsct ///


global substancevars	subabuse drinkboozeever grassever harddrugsever


global mentalhvars 	neuroticstd ///
					 							nrtc_sad_resc nrtc_worry_resc nrtc_threaten_resc nrtc_offend_resc  ///
					 							nrtc_stress_resc nrtc_disturb_resc nrtc_relax_resc nrtc_bother_resc ///
					 					locuscontrstd ///
					 							lc_choicesfuture_resc lc_nocontrol_resc lc_bizluck_resc lc_tryhard_resc  ///
					 							lc_planswork_resc lc_badluck_resc lc_peoplestreets_resc lc_success_resc ///
					 					selfesteemstd ///
					 							se_satisfied_resc  se_useless_resc se_fail_resc se_respect_resc  ///
					 							se_goodperson_resc se_good4nothing_resc se_bizwell_resc se_notproud_resc ///
		       					depression  ///
		       							baddo_resc badhear_resc badsad_resc badtired_resc badeat_resc badimportant_resc ///
					 					distress			 ///
					 							thinkbad_resc baddream_resc badagain_resc badbody_resc  badaway_resc   ///
					 							badspoiled_resc badtalk_resc  badfrust_resc badspirit_resc baddry_resc badsat_resc badburn_resc ///
					 					wellbeing ///
					 						laddernow ///
					 						subwellbeing ///
					 							happiness satisfaction health ///
					 						relwellbeing ///
					 							ladderrich ladderresp ladderpower ladderaccess

global efvars ef_score ///
							ef_arrowtime A_2timesec_resid A_3timesec_resid ///
							ef_arrowerror  A_2error_resid A_3error_resid ///
							ef_maze maze3firsttouch_std maze3backtrack_std_resc ///
							backdigscore_resid


global emphasis   asb        ///
                      hostility  ///
                      disputes   ///
                      stealnb    ///
                      arrested   ///
                      attcriminality  ///
                      attviolence     ///
                      politicalviol ///
                      impulsive     ///
                      rewardresp    ///
                      conscientious ///
                      grit



global antisocial_behavior asb_reactlose asb_reacthit asb_reactdefend asb_reacttease asb_proontop         ///
                           asb_provandalize asb_procompetitor asb_prophysforce asb_procuss


global hostile_behavior    badreact             ///
                           badadvice            ///
                           hardjokes            ///
                           cheat                ///
                           troublesome          ///
                           frustrated           ///
                           threaten             ///
                           takethings           ///
                           selfdiscipline

global depression baddo                ///
                  badhear              ///
                  badsad               ///
                  badtired             ///
                  badeat               ///
                  badimportant

global distress badtalk       ///
                badspoiled    ///
                badfrust      ///
                badspirit     ///
                baddry        ///
                badsat        ///
                badburn



********************************************************************************
*** Descriptioves. *************************************************************************
********************************************************************************



*Table 10
gl asb_ind 	       drugssellever  ///
					         stealnb  ///
					          stealtakethingsx stealmistakecorrx stealscrapex stealpickpocketx ///
					          stealscamx stealblackdeedx stealmuggerx stealarmedrobx  ///
					         disputes_all_z  ///
					         fightsmlneigh fightbigneigh fightphys fightweapon fightsmlleader ///
					         fightbigleader fightsmlpolice fightbigpolice fine			 ///
					         carryweapon ///
					         arrested  ///
					         asbhostil_z_p ///
					         badreact_resc badadvice_resc hardjokes_resc baddestroy_resc cheat_resc  ///
					         			troublesome_resc frustrated_resc threaten_resc takethings_resc 		///
					         			selfdiscipline_resc asb_reactlose_resc asb_reacthit_resc 					 ///
					         			asb_reactdefend_resc asb_reacttease_resc asb_proontop_resc 						 ///
					         			asb_provandalize_resc asb_procompetitor_resc asb_prophysforce_resc ///
					         			asb_procuss_resc ///
					          domabuse_z_p ///
					         	maccuse_resc mthreat_resc minsult_resc mhit_resc

gl asb_main_ind    drugssellever  ///
					         stealnb  ///
					         disputes_all_z_p  ///
					         carryweapon ///
					         arrested  ///
					         asbhostil_z_p ///
					         domabuse_z_p


* Table 12
gl timepref_ind 	  timepref_p  ///
							      patient_game_real ///
							      patient_game_decl ///
							      d_rate ///
							      timedecl_p ///
							      	time_decl_patienceladder time_decl_patient_resc time_decl_saveproblems_resc ///
						        timepref_t ///
							      incon_game_real ///
							      incon_game_decl ///
							      incon_rate_dsct ///
							      timedecl_t ///
							      	time_decl_spendquick time_decl_celebrate th_avdmnywstingfrnds_resc ///
					          timepref_real


gl timepref_main_ind 	  timedecl_p ///
							          timedecl_t ///
							          patience_heading ///
							          patient_game_real ///
							          patient_game_decl ///
							          d_rate ///
							          inconsistency_heading ///
							          incon_game_real ///
							          incon_game_decl ///
							          incon_rate_dsct ///


* Is patient_rate_dsct == d_rate ??


* Table 13
gl forwlook_ind 	impulsivestd  ///
						      	bimpls_buy_resc bimpls_act_resc bimpls_talk_resc bimpls_squirm_resc bimpls_concentrate_resc ///
						      	bimpls_present_resc bimpls_control_resc time_decl_regretspend_resc ///
						      conscientiousstd ///
						      	cnsc_prepare_resc cnsc_details_resc cnsc_doitright_resc cnsc_plans_resc ///
						      	cnsc_getby_resc cnsc_work_resc cnsc_shirk_resc cnsc_complete_resc ///
						      gritstd  ///
						      	prsv_overcome_resc prsv_ambitious_resc prsv_discourage_resc prsv_achieveimp_resc ///
						      	prsv_driven_resc prsv_changeplan_resc prsv_achievenoimp_resc ///
						      rewardrespstd  ///
						      	bas_goallout_resc bas_noholds_resc bas_doforfun_resc bas_keepatit_resc bas_feelexcite_resc ///
						      	bas_seeopp_resc bas_feelstrongly_resc bas_wincontest_resc


gl forwlook_main_ind 	 impulsivestd  ///
						           conscientiousstd ///
						           gritstd  ///
						           rewardrespstd


* Table 14
gl identity_ind   violatt ///
						      attviolence  ///
						      	nvstrangerrob nvowetakesthg nvknowncriminal nvstorekeeperpunish_resc nvkillstore_resc ///
						      	nvbeatwoman nvdestroyproperty nvstealfriendsgirl nvcorruptleaderbeaten nvbeatwife nvgirlrape ///
						      attcriminality ///
						      	attstchinamanbeat attstblackmoney attstnightops_resc attsttaxiwallet ///
						      	attstmoneydroptake attstfamilylec attstmoneybagtake attstmoneyhangtake ///
						      	attstroomvaluablestake attselfdrugsell attstknownindiv attstifreturn ///
						      politicalviol ///
						      	pvhypdemstpaid  pvhyppalpaid pvhyppalpaid200ld ///
						      	pvhypdemstpaidwcheat pvhyppalpaidwcheat ///
						      	pvhyppalpaid200ldwcheat ///
                  appearanceindex ///
					          		clothescond_resc shoecond_resc breath_resc cleanface_resc ///
					          		hair_resc fingernails_resc ///
                  prosocial ///
						      groups           ///
						      groupleadindex   ///
						      	leader bigman groupcommleader startgroup_resc ///
						      publicgoodcontrnumb ///
						      trustindex    ///
						      	trustrelatives_resc trusttleader_resc trustngos_resc trustipal_resc


gl identity_main_ind  attviolence  ///
						           attcriminality ///
						           politicalviol ///
						           appearanceindex ///
					             prosocial ///



gl mental_ind	neuroticstd ///
					    		nrtc_sad_resc nrtc_worry_resc nrtc_threaten_resc nrtc_offend_resc ///
					    		nrtc_stress_resc nrtc_disturb_resc nrtc_relax_resc nrtc_bother_resc ///
					    locuscontrstd ///
					    		lc_choicesfuture_resc lc_nocontrol_resc lc_bizluck_resc lc_tryhard_resc ///
					    		lc_planswork_resc lc_badluck_resc lc_peoplestreets_resc lc_success_resc ///
					    selfesteemstd ///
					    		se_satisfied_resc  se_useless_resc se_fail_resc se_respect_resc ///
					    		se_goodperson_resc se_good4nothing_resc se_bizwell_resc se_notproud_resc ///
					    wellbeing ///
					    	laddernow ///
					    	subwellbeing ///
					    		happiness satisfaction health ///
					    	relwellbeing ///
					    		ladderrich ladderresp ladderpower ladderaccess ///
					      depression ///
					      baddo_resc badhear_resc badsad_resc badtired_resc badeat_resc badimportant_resc ///
					      distress ///
					       thinkbad_resc baddream_resc badagain_resc badbody_resc  badaway_resc badtalk_resc badspoiled_resc badfrust_resc badspirit_resc baddry_resc badsat_resc badburn_resc


gl mental_main_ind	neuroticstd ///
		      			    locuscontrstd ///
		      			    selfesteemstd ///
		      			    wellbeing ///
		      			    depression ///
		      			    distress


global famnet_ind peerqualitystd  ///
					    	  	peerschool peercommmtg peerchurch peerwork peerbusiness peersave ///
					    	  	peertrust peershare peercheer peerguard  ///
					    	  	peerbeg_resc peerdrunk_resc peerdrugs_resc peerpickpocket_resc ///
					    	  	peerburglary_resc  peerrobbers_resc peergamble_resc peerexcom_resc ///
					    	  	peercomdr_resc peersmallpal_resc peerbigpal_resc ///
					    	  famsupportindex ///
					    	  	famseeoften_resc famconcern_resc famadvise_resc famhelp_resc ///
					    	  rel_commanders ///
					    	  	peercomdr relcomm jobcomm repcomm ///
					        patronlvl ///
					    		ptrnjob ptrnbiz ptrnfood ptrnschl  ptrnhsing



global famnet_main_ind peerqualitystd  ///
					         	  famsupportindex ///
					         	  rel_commanders ///
					         	  patronlvl


global subabuse_ind drinkboozeever grassever harddrugsever





* Table 11
gl econ_ind     success     ///
			           profitsump99avg7d profitsump997d profitsump99prev7d  ///
			           wealth_indexstd ///
			           cstot2wusd ///
			             csnonfood2w cshealthedu2w csdurable2w csimpulse2w ///
			           savstockp99 savesusuamtusd ///
			             saveclubamtusd savebankamtusd savewpersonamtusd savewselfamtusd saveothamtusd  ///
			           bizexptotp99 bizstocktotp99 ///
			             bizstockraw bizstockinvent bizstockequip bizstockstruct  ///
			           houravg7d hour7d hourprev7d ///
			           homeless ///
			             sleepstreetnow sleepstreet4w sleepstreet4wdys   ///
			           victimany ///
			             victimhouserob3m victimhouserob3mamt  victimhouserob4w victimhouserob4wamt  victimhouserob13m victimhouserob6m ///
			          	victimhouserob3m_resc victimhouserob4w_resc


gl econ_main_ind      profitsump99avg7d     ///
			                wealth_indexstd ///
			                cstot2wusd ///
			                savstockp99 ///
			                bizstocktotp99 ///
			                houravg7d ///
			                homeless ///


gl stat_t3z       wealth_indexstd ///
			                      dwellingqual wallsqual floorqual roofqual batheaccess toiletqual placedry ownhouse rooms bicycles motorcycles singlebarrelgun pistol knife    ///
			          						mattresses generator coalpots radios tvs books mats chairs tables wheelbarrow oillantern kerosenelanterns battlanterns torch landtown farmland ///
			          						landdeeds watch phones shoes shirts trousers eat1dx slphungry




gl stat_t3a hour7d  ///
                contract7dhrstot shop7dhrstot table7dhrstot buysell7dhrstot pettytrade7dhrstot  office7dhrstot ///
			          carload7dhrstot carwash7dhrstot moto7dhrstot carryload7dhrstot guard7dhrstot houseclswp7dhrstot scavenge7dhrstot beg7dhrstot farm7dhrstot ///
			          drugsell7dhrstot stealing7dhrstot gambling7dhrstot smallbiz7dhrstot constr7dhrstot fish7dhrstot goldrubber7dhrstot other7dhrstot ///
            hourprev7d ///
                contractprev7dhrstot shopprev7dhrstot tableprev7dhrstot buysellprev7dhrstot pettytradeprev7dhrstot  officeprev7dhrstot ///
			          carloadprev7dhrstot carwashprev7dhrstot motoprev7dhrstot carryloadprev7dhrstot guardprev7dhrstot houseclswpprev7dhrstot scavengeprev7dhrstot begprev7dhrstot farmprev7dhrstot ///
			          drugsellprev7dhrstot stealingprev7dhrstot gamblingprev7dhrstot smallbizprev7dhrstot constrprev7dhrstot fishprev7dhrstot goldrubberprev7dhrstot otherprev7dhrstot


gl stat_t3b profitsum7d ///
                contract7dprofusd stealing7dprofusd gambling7dprofusd smallbiz7dprofusd constr7dprofusd fish7dprofusd ///
                goldrubber7dprofusd other7dprofusd drugsell7dprofusd farm7dprofusd beg7dprofusd scavenge7dprofusd houseclswp7dprofusd ///
                guard7dprofusd carryload7dprofusd moto7dprofusd carwash7dprofusd carload7dprofusd office7dprofusd trade7dprofusd ///
                pettytrade7dprofusd buysell7dprofusd table7dprofusd shop7dprofusd ///
            profitsumprev7d ///
                contractprev7dprofusd stealingprev7dprofusd gamblingprev7dprofusd smallbizprev7dprofusd constrprev7dprofusd fishprev7dprofusd ///
                goldrubberprev7dprofusd otherprev7dprofusd drugsellprev7dprofusd farmprev7dprofusd begprev7dprofusd scavengeprev7dprofusd houseclswpprev7dprofusd ///
                guardprev7dprofusd carryloadprev7dprofusd motoprev7dprofusd carwashprev7dprofusd carloadprev7dprofusd officeprev7dprofusd tradeprev7dprofusd ///
                pettytradeprev7dprofusd buysellprev7dprofusd tableprev7dprofusd shopprev7dprofusd

gl stat_t3c bizstockraw     ///
              contractrawmatvalusd shoprawmatvalusd tablerawmatvalusd buysellrawmatvalusd pettytraderawmatvalusd  officerawmatvalusd ///
			        carloadrawmatvalusd carwashrawmatvalusd motorawmatvalusd carryloadrawmatvalusd guardrawmatvalusd houseclswprawmatvalusd scavengerawmatvalusd begrawmatvalusd farmrawmatvalusd ///
			        drugsellrawmatvalusd stealingrawmatvalusd gamblingrawmatvalusd smallbizrawmatvalusd constrrawmatvalusd fishrawmatvalusd goldrubberrawmatvalusd otherrawmatvalusd ///
            bizstockinvent  ///
              contractmercsvalusd shopmercsvalusd tablemercsvalusd buysellmercsvalusd pettytrademercsvalusd  officemercsvalusd ///
			        carloadmercsvalusd carwashmercsvalusd motomercsvalusd carryloadmercsvalusd guardmercsvalusd houseclswpmercsvalusd scavengemercsvalusd begmercsvalusd farmmercsvalusd ///
			        drugsellmercsvalusd stealingmercsvalusd gamblingmercsvalusd smallbizmercsvalusd constrmercsvalusd fishmercsvalusd goldrubbermercsvalusd othermercsvalusd

gl stat_t3d bizstockequip   ///
              contractequipvalusd shopequipvalusd tableequipvalusd buysellequipvalusd pettytradeequipvalusd  officeequipvalusd ///
			        carloadequipvalusd carwashequipvalusd motoequipvalusd carryloadequipvalusd guardequipvalusd houseclswpequipvalusd scavengeequipvalusd begequipvalusd farmequipvalusd ///
			        drugsellequipvalusd stealingequipvalusd gamblingequipvalusd smallbizequipvalusd constrequipvalusd fishequipvalusd goldrubberequipvalusd otherequipvalusd ///
            bizstockstruct ///
              contractstructvalusd shopstructvalusd tablestructvalusd buysellstructvalusd pettytradestructvalusd  officestructvalusd ///
			        carloadstructvalusd carwashstructvalusd motostructvalusd carryloadstructvalusd guardstructvalusd houseclswpstructvalusd scavengestructvalusd begstructvalusd farmstructvalusd ///
			        drugsellstructvalusd stealingstructvalusd gamblingstructvalusd smallbizstructvalusd constrstructvalusd fishstructvalusd goldrubberstructvalusd otherstructvalusd



gl  base3   age_b  ///
			      livepartner_b  ///
			      mpartners_b  ///
			      hhunder15_b  ///
				    famseeoften_b  ///
				    muslim_b  ///
				    school_b  ///
				    schoolbasin_b  ///
				    literacy_b  ///
				    mathscore_b  ///
				    health_resc_b  ///
				    disabled_b  ///
				    depression_b  ///
				    distress_b  ///
			     	rel_commanders_b  ///
			     	faction_b  ///
			     	warexper_b  ///
				    profitsump99avg7d_b  ///
				    wealth_indexstd_b  ///
				    homeless_b  ///
				    slphungry7dx_b  ///
				    savstockp99_b  ///
				    loan50_b  ///
				    loan300_b  ///
					  illicit7da_zero_b  ///
					  agricul7da_zero_b  ///
					  nonagwage7da_zero_b  ///
					  allbiz7da_zero_b  ///
				    nonaghigh7da_zero_b  ///
				    agriculeveramt_b  ///
				    nonagbizeveramt_b  ///
				    nonaghigheveramt_b  ///
				    drugssellever_b  ///
				    drinkboozeself_b  ///
				    druggrassself_b  ///
				    grassdailyuser_b  ///
				    harddrugsever_b  ///
				    harddrugsdailyuser_b ///
				    steals_b  ///
				    stealnb_nonviol_b  ///
				    stealnb_felony_b  ///
				    disputes_all_b  ///
				    asbhostil_b  ///
				    conscientious_b  ///
				    neurotic_b  ///
				    grit_b  ///
				    rewardresp_b  ///
				    locuscontr_b  ///
			     	impulsive_b  ///
			     	selfesteem_b  ///
					  patient_game_real_b  ///
					  incon_game_resc_b  ///
					  risk_game_resc_b  ///
				    timedecl_b  ///
				    riskdecl_b  ///
					  cognitive_score_b  ///
					  ef_score_b


*Final Lasso Double Machine Learning control vars.

global base_dml       ///
asbhostil_b           ///
stealnb_nonviol_b     ///
steals_b              ///
riskdecl_b            ///
mathscore_b           ///
harddrugsever_b       ///
timedecl_b            ///
homeless_b            ///
mpartners_b           ///
druggrassself_b       ///
harddrugsdailyuser_b  ///
agricul7da_zero_b     ///
impulsive_b           ///
cens_disputes_all_b   ///
patient_game_real_b   ///
wealth_indexstd_b     ///
savstockp99_b         ///
school_b              ///
ef_score_b            ///
rewardresp_b          ///
selfesteem_b          ///
agriculeveramt_b      ///
cognitive_score_b


global base_dml_small       ///
asbhostil_b            ///
stealnb_nonviol_b      ///
steals_b               ///
riskdecl_b             ///
mathscore_b            ///
harddrugsever_b        ///
timedecl_b             ///
homeless_b             ///
mpartners_b            ///
druggrassself_b        ///
harddrugsdailyuser_b
